package com.service;

import com.bean.Admin;
import com.bean.Owner;

import java.sql.SQLException;

public interface LoginService {
    /**
     *
     * @param name
     * @param password
     * @return登录成功，返回user实体，登录失败：返回null
     * @throws SQLException
     */
     Admin login(String name, String password)throws SQLException;
     Owner login1(String id, String password)throws SQLException;
}
